package com.gxa.modules.app.outpatient.medical.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.modules.app.outpatient.medical.dto.MedicalRecordDto;
import com.gxa.modules.app.outpatient.medical.dto.RecordDto;
import com.gxa.modules.app.outpatient.medical.dto.ReportInformationDto;
import com.gxa.modules.model.entity.hospital.MedicalRecord;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 体检预约信息 Mapper 接口
 * </p>
 *
 * @author yjl
 * @since 2022-11-13 05:47:51
 */
@Mapper
public interface AppMedicalRecordMapper extends BaseMapper<MedicalRecord> {
    Double queryById(Integer id);
    Integer queryId();
    MedicalRecordDto queryByRecordId(Integer id);
    List<RecordDto> queryByPatientId(Integer id, Date StartTime, Date EndingTime);
    ReportInformationDto queryMax(Integer id);
    void add(MedicalRecord medicalRecord);
    void reduceMoney(Integer mon);




}
